package net.mingsoft.report_data.enums;

/**
 * @author gengfa
 * @date 22/03/10
 */
public enum ReportType {
    /**
     * 人口动态变化分析，城市通勤分析
     */
    /*POPULATION_ANALYSIS("POPULATION_ANALYSIS", "人口动态变化分析", "1440982628193468418", "人口动态变化分析"),
    CITY_OD_ANALYSIS("CITY_OD_ANALYSIS", "城市通勤分析", "1440982678344761345", "城市通勤出行分析");*/

    DYNAMIC_POPULATION("DYNAMIC_POPULATION", "人口动态变化", "1440982628193468418", "人口动态变化分析报告"),
    CITY_OD("CITY_OD", "城市通勤出行", "1440982793088335874", ""),
    CITY_LIVE("CITY_LIVE", "城市活力", "1440982793088335874", ""),
    ENTERPRISE_ACTIVITY_ECONOMY("ENTERPRISE_ACTIVITY_ECONOMY", "企业经济行为", "1440982678344761345", ""),
    PEOPLE_LIVE_HOOD("PEOPLE_LIVE_HOOD", "社会民生", "1440982727871102977", ""),
    SMUGGLE_AND_DOCK("SMUGGLE_AND_DOCK", "走私上岸与隐蔽码头分布", "1440982727871102977", "走私上岸与隐蔽码头分布报告"),
    ON_VACATION_FLOW_POPULATION("ON_VACATION_FLOW_POPULATION", "节假日人口流动", "1440982628193468418", "节假日人口流动分析报告"),
    FOCUS_AREA("FOCUS_AREA", "关注区域", "1440982793088335874", "关注区域分析报告"),
    CITY_PLAN_SMART_SELECT("CITY_PLAN_SMART_SELECT", "人口动态变化", "1440982793088335874", "城市规划智能选址");

    private String type;

    private String categoryName;

    private String categoryId;

    private String contentTitle;

    ReportType(String type, String categoryName, String categoryId, String contentTitle) {
        this.type = type;
        this.categoryName = categoryName;
        this.categoryId = categoryId;
        this.contentTitle = contentTitle;
    }

    public static ReportType getReport(String report) {
        for (ReportType value : ReportType.values()) {
            if (value.getType().equals(report)) {
                return value;
            }
        }
        return DYNAMIC_POPULATION;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public String getContentTitle() {
        return contentTitle;
    }

    public void setContentTitle(String contentTitle) {
        this.contentTitle = contentTitle;
    }
}
